fix reversal of stacked line data