fix editRelations query call