u are mixing aggregatorSettings.getPointsCount() and pointsCount
propose to use either one or another