fix score calculate bug