Fixed some bugs of LinkedList.