Fix upload without internet connection