Fixed bug about the cov matrix