repairing wrong link paths