Fixed stupid mistake in finishIteration method