Fix bug in recalculating steps

@noahsark769 Quick and easy bug fix