error fix in template