Fixed bugs when going to main menu from a simulation and then starting a
new one.