Fixes bug on memberships