fix invokeBeforeExecute(), invokeAfterExecute()