fixed stupid valgrind error