Fix bug with membership manager