diff --git a/js/nodes_stats.js b/js/nodes_stats.js
index 3bd3a3c..3f84880 100644
--- a/js/nodes_stats.js
+++ b/js/nodes_stats.js
@@ -72,7 +72,7 @@ async function showStatsDialog() {
"background:#1e1e1e;color:#ddd;border-radius:8px;padding:24px;max-width:800px;width:90%;max-height:85vh;overflow-y:auto;font-family:monospace;font-size:13px;";
let html = `
-
Node Package Stats
+ Usage Stats
`;
@@ -140,7 +140,7 @@ async function showStatsDialog() {
// Easter egg: click "used" badge 5 times to show podium
let eggClicks = 0;
let eggTimer = null;
- const usedBadge = document.getElementById("nodes-stats-used-badge");
+ const usedBadge = dialog.querySelector("#nodes-stats-used-badge");
if (usedBadge) {
usedBadge.addEventListener("click", () => {
eggClicks++;