Fix iostreams