Fix paths2candidates()