Fixed the mean value problem and rounding the mean values