Fixes group creation not working correctly.