Fix runForNIterations()