Scoring get NaN problem