fix missing `break` in switch statement