fixed array lookup in iterator which was undefined