Fixed a bug when retrieving the defaultGroup