fixed step size handling in borderline cases. When an even occurred at step start, the step size dropped to zero which put integration in an infinite loop