fixed error in creategroups