non-degenerate ml
fix ml for covariance inversion