fixed template path bug