Correct the score calculation