Fix overflow of records.