fixing script auto-copying