fix the score bug