Fix two LinkedList bugs