Fix output order.