fix delete_order

fix delete_order with otype argument