diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js
index 88e3d617..808ec37c 100644
--- a/src/gui/html/js/events.js
+++ b/src/gui/html/js/events.js
@@ -39,7 +39,7 @@ function onChangeGame(evt) {
/* Reset virtual list positions. */
document.getElementById('cardsNav').scrollToIndex(0);
- document.getElementById('main').lastElementChild.scrollToIndex(0);
+ document.getElementById('pluginCardList').scrollToIndex(0);
/* Now update virtual lists. */
filterPluginData(loot.game.plugins, loot.filters);
diff --git a/src/gui/html/js/init.js b/src/gui/html/js/init.js
index 0289f5b7..25e9128c 100644
--- a/src/gui/html/js/init.js
+++ b/src/gui/html/js/init.js
@@ -223,7 +223,7 @@
const game = JSON.parse(result, Plugin.fromJson);
appData.game = new Game(game, appData.l10n);
document.getElementById('cardsNav').items = appData.game.plugins;
- document.getElementById('main').lastElementChild.items = appData.game.plugins;
+ document.getElementById('pluginCardList').items = appData.game.plugins;
applyEnabledFilters(appData.filters, appData.settings, appData.game.plugins);
Dialog.closeProgress();
});