fix typo (i->idx)

https://github.com/mruby/mruby/issues/2606