fixed main memory leak