fix  table resize bug