try to fix valgrind issue