Fix references to deleted packages.