Fixed bugs in Group creation.