fix template loading path