Fixes SetupTemplateEngine