Solved a few memory leaks