another bug fix for grouping support in linear regression