Fix multiple equal case statements can be enabled at the same time when setting value.