Fixing BufferedInputStream.