fixes publish problem in ActionDefineFunction2