Fix broken associations for bad import.