fix compile error when uncheck AES encryption