Fixed buffer stream in stream parser

Fixed buffer stream in stream parser