fixed new memory leak