Fixed calculation of weights for FWHM and zero point.