fixing script execution