fixed forgotten break statements