fixed issue of next iterator.