Yeah in this environment, <code>i</code> would get incremented always.
Fixed in my next PR.