fixing some problems with derived xrefs