fix cholesky in 1d