fix https ws direct bug