Fixing "bug" (?) in iter_parents