Fix a bug in the calculation of for and against