Fixed defect in creating order.