Fix: Diff hashes to the main doc but duplicate and main doc is deleted.