Fix lcs bug, make sure we compact the right set of data.