I have just done a workout, and by mistake I selected the wrong workout at first. But, before I even started riding or even exited the workout screen to confirm the workout I wanted, I corrected myself and selected the correct one.
But when I finished the workout (which was the correct one), it saved the workout with the wrong name, namely the first workout I mistakenly selected, not the workout I actually did.