diff --git a/keepassxc-browser/background/page.js b/keepassxc-browser/background/page.js
index a806ed1..fb33b3f 100644
--- a/keepassxc-browser/background/page.js
+++ b/keepassxc-browser/background/page.js
@@ -105,7 +105,7 @@ page.removePageInformationFromNotExistingTabs = function() {
let rand = Math.floor(Math.random()*1001);
if (rand === 28) {
browser.tabs.query({}).then(function(tabs) {
- let $tabIds = {};
+ let $tabIds = [];
const $infoIds = Object.keys(page.tabs);
for (const t of tabs) {
diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html
index 81c57da..6749f9d 100644
--- a/keepassxc-browser/options/options.html
+++ b/keepassxc-browser/options/options.html
@@ -138,7 +138,7 @@