fix for step size shrinking