fixed template
fixed function template specialization error