fixed refitFunctor