fix streaming endpoint