Corrected division by zero error in pMCpeak/base/avg