Fixed linkedlist bug