fix the bug that does not overwritten file when same file has been in duplicates folder