Fixed an error where memberships was not getting the correct context.