removed not used $i variable

removed not used $i variable
Merge pull request #1518 from andraskende/master

removed not used $i variable