fix streaming error