fixed valgrind errors