Fixed a MASSIVE switch statement bug

Basically, it wasn’t actually working before :P