bugfix functor param template