fix for using .toObject() inside .save() with nested associations