fix crash resulting from parsing incomplete data

- now concat all chunks before parsing it