Fix a bug on the score computation