fixed event parsing with chunked encoding