Enhance code's robustness when losing the width of table.