Fix httpSwitch