fixed last memory leak