Bug for menu visibility fix