Fixed offset being smaller than 8 in getLinkedRecordsFromLog, causing an
index out of bound exception.