Repairing links