Fix Leonardo upload error.