Fix offset of record
merge record