Fixed editing an order and take care of group_orders.