fix table row count