Fixed ConcurrentModification exception in MainMenu.