Fixed the totalSets calculation.