Solved template path problem