Fixed a serious in the regression code