fix crash issue that update file name when there have the same file name in favorite