Fixed errors in order/step size selection method