Repairing broken links