Reset the iterator before trying to test for membership