Permission fix in template.