fixed the incorrect table size bug