[BF] Incorrect calculation of max values for aggregate ports