fix broken xrefs