Bug fix in the error handling of the grouping support for linear and logistic regression