Fix get_parent_class