Fixed changing number of iterations