Fix a bug

The variables on the half time step should be set every iteration.