fix checkHasRelation