make sure the template name is copied