Fixed detection of groups joined/left