[fix] use record.toJSON() when saving object to store