fix templates file