Fixed error in add_to_score.