memory leak gefixed