Fixed bug with group creation.