fixed "missing break" bug in switch statements