createRelation fix