fixed potential bug with setStartParameters and bug with stepSize