Fix clicking on menu background causing menu to close