Fix an error in the upload script