fix internet failure bug