Fix MembershipRepository