fixes for template render