Changed how wrong port is handled for aggregation.