Correct table auto-resizing