Fixed possible iterator arguments overwrite