You can recover a file that was replaced by another file with the same name using the following procedure. You need a backup of the original file for this method to work.
Rename the second file that replaced the original with a new name.
Connect to your backup and recovery tool.
Locate the original file and restore it to your computer.
You now have both files under two different names and should be able to proceed with your work.