Fix bug in recalculating steps
Merge pull request #157 from calband/brandon__bug_xcoord

Fix bug in recalculating steps