Was missing a break in switch