fix inheritanceIterator