Fixed using errors in template files