Fixed decrypting in case there's no shared key