Fix ***** bug in pathsToAddresses algo