woops; fix memory leak