Fix the careless typo
Change switch unit to switch Function