fixed missing break in switch statement