Fixed a bug in the copy in StreamPlayer