fix memory problem,fix double link list