Typo correction in switch statement