correct the content of template.cc