graph range fix
fixed regression
fixes on least squares