Probably fix memory leak