Fixed missing break in switch loop