hackish solution for table resize bug