Fixed switch case error