fix stream timeout issue