This fixes the bug of going back to the first stage after already moving to other stages. If you do that in the original code, the progress bar doesn't resets the drawing coordinates and the joining line between the first stage and the second stage won't be erased.
This fixes the bug of going back to the first stage after already moving to other stages. If you do that in the original code, the progress bar doesn't resets the drawing coordinates and the joining line between the first stage and the second stage won't be erased.