time step bug fixed