fix invokeBeforeExecute()