fix bug closeMenu()