Bug fixes in evaluateBySegment and analyseScores