fixed bug in rhIterator