fix table resize bug