repair some links