fix for addRecord()