Fix for the calculation of the average variance.
Authored by: bugman 2008-12-01
Parent: [r8068]
Child: [r8070]