fix crash when score is empty