could it be that you have a match so it increases the %i then the script increases %i again?
try using return in the match section and see what you get