Fixed a problem with creating iterations