fixed broken trait on PFun