removed $i variable, it not being used...

removed $i variable, it not being used...
Merge pull request #1519 from andraskende/master

removed $i variable, it not being used...