fix shipment generation issue