Fixed a few Valgrind errors