fixes for when there are skipped steps in the middle of some pendings