Renaming to an Existing File Fails but Shows Success Message