fixup delete document