Fixes to how iterator traverses collection with next url

Fixes #369