fixed bugs in menus