VESPERS: Fixed some bugs when switching between the sample stage and wire stage.