fix templates collection