fixed table size bug