fix error for stepsize