fix memory leack