fix templates resolution