fix more memory leak