Fix templating of base template.