Disable .switch when statement can't be written