[BUGFIX] Fixed endless loop if step is misused
Merge pull request #377 from hmspl/for_step_fix

[BUGFIX] Fixed endless loop if step is misused