Fixed unitialized memory use that valgrind found