Fixed bug where menu wasn't closing when turning menu off.