Fixed switch statement formatting