Segmental alignment fixes; for all average, median, max and average2