No there are other problems with the output other than the name. The editing file duplicates, instead of replacing the original record and wanted to find out if anyone had a solution. Why would I troll?
The problems with your code were described in posts 2 and 4 of this thread. I gave you a big part of the solution. Why won't you use the answers that you've already been given?