fix linkedlist bug