Bug fixes to Variance