fix dual execution of WrapperFunction._after