fixing a bug in adding Groups to aliasToGroupMap