Fixing stock script