mean value zero denominator fix