Fix empty iterators on WithProgressBar