Fix bug in preparation of external datasets for Rand index
Don't save PDF