correct the use of Cholesky