fix table resize