fixed bug in linear model estimates