Fix ranking relations by confidence