small fix for disconnected uploading