Fixed an issue in key decryption