Fixing `record.set()` when creating new properties