[BUGFIX] Fixed endless loop if step is misused