fix switch brace typo