Fix keytable size calculation.