Fixed bugs in deduplication document