Resetting TemplateEntine when adding template