fix bug of calculating of total score