Fixed a bug when confronted with new groups