Add an entry with pathdistance = 0 for each term