fixed the issue of multiple memberships