fix cpp_template