Fixing membership bug