Encryptor bugfix