fix bug in delivery_method set