fixed counting last step when using steps instead of seconds