fixed template loading path