Fix table size computation