Fix getIterator with aggregate