fix for condition when there's no internet connection available