fixed array lookup in iterator which was undefined
Merge pull request #4 from georglang/master

fixed array lookup in iterator which was undefined