Fixed graph reset when starting new simulation.