BATCH-1757: MinMaxPartitioner sets incorrect max value 

Fixed max calculation