fields were not saved at all, add the fields-stream to the actual output stream
Merge pull request #4550 from BevapDin/fix-saving-of-fields

fields were not saved at all, add the fields-stream to the actual output stream