[FOLD] fix template function partial specialization