Variables used in the Expression or Condition field for Switch and Decision activities are not updated when the variable is renamed.
See attached screenshots:
removed due to forum restrictions on new users
Note how the variable name has been updated in the assign activity but not the Switch activity. This results in an error (since the old variable name is now undefined)