fix uninitialized variable error turned up by valgrind