fix reading template path