Hopefully fixing the closeMenu() method