Fix error highlighting after table rearrangement.