Fixed issue with EOF in stream parser