Fix bug #5395: prevent the loss of current steps on reboot