Fixed mistake in LinkedList implementation.