Fixed error with group creation