Fixed a bug in scoreboard