fix some resize issues
resolve some issues when resize table.