fix crash when no internet connection present