fixed error in template