fixing bug addRelation impossible