change
Code:
var %i = 2
to
Code:
var %i = 1


Not sure why hixxy started at the 2nd character, or how hixxy got the proper results, as shown in their post, but that change should make the code work correctly.