Avoid step size being set to 0