decryption key bug fix