Fixed some behavior bugs with menus appearing