Fix incorrect validation in SwitchConfig