fix memory leak eachModel