Issues with activating windows

I am trying to create custom menus for my game through code modification. I have put an image over the screen and I want to make it so Options are over the image and work just as before.

The normal option screen works, but mine doesn't.

Currently the window has selected index 0 and it doesn't respond in any way. No blinking, no sound, no moving with the mouse, no activating. You can change the selected index through code, you can hide and show the option window. Even the "activate()" function doesn't do anything.
It seems as though the option window is stuck in time.

I would really appreciate the help! 😅

The code:

function Scene_OptionsMenu() {
this.initialize(...arguments);
}

Scene_OptionsMenu.prototype = Object.create(Scene_MenuBase.prototype);
Scene_OptionsMenu.prototype.constructor = Scene_Options;
Scene_OptionsMenu.prototype.initialize = function () {
Scene_MenuBase.prototype.initialize.call(this);
OptionsMenu = this;
xRatio = Graphics.boxWidth / IMAGE_WIDTH;
yRatio = Graphics.boxHeight / IMAGE_HEIGHT;
};

Scene_OptionsMenu.prototype.create = function () {
Scene_MenuBase.prototype.create.call(this);
this.baseMenu = new Sprite_MenuBase(ImageManager.loadBitmap("img/ui/", "OptionsOpen"));
this.addChild(this.baseMenu);
this.sprite_InventoryHover = new Sprite_InventoryHover(ImageManager.loadBitmap("img/ui/", "Hover"));
this.addChild(this.sprite_InventoryHover);
this.sprite_QuestsHover = new Sprite_QuestsHover(ImageManager.loadBitmap("img/ui/", "Hover"));
this.addChild(this.sprite_QuestsHover);
this.sprite_SavesHover = new Sprite_SavesHover(ImageManager.loadBitmap("img/ui/", "Hover"));
this.addChild(this.sprite_SavesHover);
this.sprite_OptionsHover = new Sprite_OptionsHover(ImageManager.loadBitmap("img/ui/", "Hover"));
this.addChild(this.sprite_OptionsHover);
this.sprite_MainMenuHover = new Sprite_MainMenuHover(ImageManager.loadBitmap("img/ui/", "Hover"));
this.addChild(this.sprite_MainMenuHover);
this.createOptionsWindow(this);
};

Scene_OptionsMenu.prototype.update = function () {
KeyMapChecker(this);
HoverChecker(this);
};

Scene_OptionsMenu.prototype.createOptionsWindow = function (base) {
const rect = this.optionsWindowRect();
this._optionsWindow = new Window_Options(rect);
this._optionsWindow.setHandler("cancel", this.popScene.bind(this));
this._optionsWindow.opacity = 0;
base.addChild(this._optionsWindow);
};

Scene_OptionsMenu.prototype.optionsWindowRect = function () {
const n = Math.min(this.maxCommands(), this.maxVisibleCommands());
const ww = (400 / SCREEN_WIDTH) * Graphics.boxWidth;
const wh = this.calcWindowHeight(n, true);
const wx = (350 / SCREEN_WIDTH) * Graphics.boxWidth;
const wy = (200 / SCREEN_HEIGHT) * Graphics.boxHeight;
return new Rectangle(wx, wy, ww, wh);
};

Scene_OptionsMenu.prototype.maxCommands = function () {
// Increase this value when adding option items.
return 7;
};

Scene_OptionsMenu.prototype.maxVisibleCommands = function () {
return 12;
};
}

Original thread: https://forums.rpgmakerweb.com/threads/issues-with-activating-windows.171057/