Fix disabling ssl causing errors