fix templates loading from  other modules