bug: misplaced "break" command