Fix ordering of plaintext output