added missing brake in switch