Fixed stdout output order.