streaming thread fix