Fix for DocumentIterator - was not getting next doc