bugfix for small variances