bug fix: reset the step count