repair some associations