Fixed critical error on menus