Fixed valgrind problem.