Fix issue with iterations