Valgrind error fixed.