Replacing incorrectly deleted file