Fixed update of covariance matrix when both variables are categorical.