Fixed a code msitake.

Now it will overwrite any file with the same name as the value of our string name called `filename".