fix diagnostic for cleared indexes