fix switch typo