Fix variable time step