Fixed the semi-fixed timestep to work correctly