prevent changing a resource type to be its own parent