fix error in template