fix invalid syntax in switch statement (probably should go to sleep soon)