BufferedStream CopyTo bugfix

Thanks @Emill