fix bug with group ids