Buffer was not initialised with correct size in filter_chain_byte_stream!