partial fix for physically deleted records, but logic could benefit from a bit more work since it's not totally complient with ISIS documentation.