Keeping iterator consistent after manual logout.