fixed timestep 0 problems