Fixed bug that caused the score to not update properly