Fixed table resizing bugs