Fix recursive template path