Better header table size check