fixing usage of EncryptionException