Fixed bug where the menu would not close once opened