fix for misplaced break in cancelOperation