Repairing link error