BufferedStream fixed