Fixed broken logic for choosing address flattening strategies.