Fix http command hang