fix error without internet connection