fixing script pbs