Fixed table resizing issue