fixing break in switch clause causing program to exit when using m option