Fix bug at template path