Fixed decryption error handling