Fix error in template