Fixed edit membership bug