Fix a misused iterator.
Merge pull request #21 from gwtnb/fix-map-iterator

Fix a misused iterator.