fixing template render error