Correcting a little mistake in the calculation of the energy of pairs.