fix bug -memory leak-