Delete useless duplicates