Fixed crash when no internet connection