Fix total score calculation