Fix faulty case statement.