Fix loop for order details