fix Stream copy/assignment