fix relative template path