error in template