Fixes bug in fix timestep