Add missing curly brackets in switch statement.