[FIX] Using `writeRecord()` instead of `writeRecords()`.