fix adaptive time step (solved only parialy, adaptivity with desired num steps not good)