another bug fix on restart of a simulation.