Fixed bug with creating new iteration