score calculation bug fix