Using key for inheritance of activeRule instead of id
Fixed inheritance when parent_id is null in DTO