Fixing errors in records.