bugfix : errors in members comparison

Members in a relation was incorrectly compared