fix streaming bug