fixed template dir setting