Fix memberships order