fix memory release a litte