Fixing menus not working after first click