Fix an error in which the covariant matrices may not be definite positive. To do this, apply a small regularization term to the matrices by adding some epsilon to the diagonal of the covariant matrices.