Fixed bug with template path