fixed crash when internet is not available.