fix function non-type template to class type