Use correct arguments for iterator constructor
Merge pull request #6497 from wmtan/UseCorrectArgument

Use correct arguments for iterator constructor