fix valgrind warning, add log air