avoid segv when fetch via http.