template path fix