fixing unique templates