Fixing vars for switch.