fixed a duplicate score bug