fixed critical bug in iterators
fixed critical bug in iterators