Fix simulation time when performing a restart