Fixed missing thread id in record.