Added proper breaks for each switch case.