Fixes
diff --git a/gds_to_lef_gds_mag.py b/gds_to_lef_gds_mag.py
index 72247e3..ef90af0 100755
--- a/gds_to_lef_gds_mag.py
+++ b/gds_to_lef_gds_mag.py
@@ -854,7 +854,7 @@
     with open(lef_out_file, 'w') as f:
         f.write(contents)
 
-    prepend_copyright(lef_file)
+    prepend_copyright(lef_out_file)
 
 
 def rewrite_out_mag(mag_in_file, mag_out_file):