Fixed constructor in TemplateBuilder