vmax timestep bug fix