fix empty stream
1.0.1 fix empty stream