fix valgrind uninitialized data warning