fix functor memory leak; modify new NFASSERT