fix the upload script