Fixed convergence bug for stepsize = threshold in fit