fixed template locating