fix encryptor is null