Fixed an allocation error in get_scores()