fix linear regression