Another BufferedStream bugfix

Thanks @Emill