Fixed comparison in loop
Merge pull request #1 from TactMayers/master

Fixes comparison in loop