Fixed updating of covariance matrix when both variables