LinkedList bug fix