fixed a bug with final score