Fixing script errors.