fixed a bug with homogeneity of variances