fix deactivation of SSL