fix in pairwise var regularization