Fix decryption exception if identity changed