Fixing broken groupmember code