fixed createOrUpdateRelationship