fix typo that broke weighted averaging for pairs of values