fixing a bit object over creation problem in bufferedStream