fix various memory leak