Fix getAllOrders