Corrected syntax error with case statement