fix: added breaks in switch statement