fixed a bug in LinearRegressionReducer