Fixed a bug where LinkedListIterator ignores the last element