fixed history and delete xrefs