Fixed copyStream