Fixed a bug in recalculating group members