repair links error