bug fix for linear regression grouping support