fix typo (i->idx)
Merge pull request #2608 from mrbrdo/fix-typo

fix typo (i->idx)