Fix typos in Switch class