Fix IO.
Fix output stream.