Fix global leak of variable `ii`
Merge pull request #27 from jeremyworboys/patch-1

Fix global leak of variable `ii`