Fix function based functor