fix problem with critical exception on no internet connection