Fixed an annoying bug with the settings menu

- The bug is that when you click the main menu background, the box will
disappear and never reappear.