Enforce the restriction on children of the same type