encryptor bugfix