fix some uninitialized value errors (yay valgrind!)