fixed problem when $post did not contain 'deliveryType' field