fixed bug with group creation