fix memory leaking bug