Fix message decryption bugs.