Fix _parent() calls with deeply nested classes