Fix sometimes can't get host header