fixed bug with iternumber and first polyfit