Find duplicates and fix document inspection by ID