Fixes valgrind problems