Problems with a linear fit with negative slope