           
         label = label_row = $('<td>')
         if data.detail_uri
-          label = $('<a data-gricer-process="true">').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(key)))
+          label = $('<a data-gricer-process="true"></a>').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(key)))
           label_row.append(label)
       
         if graph

          graph = data.data.length < 4 or $.gricer.colors[i] and line[1]/data.total > 0.05 
          label = label_row = $('<td>')
          if data.detail_uri
            label = $('<a data-gricer-spread="true">').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(line[0])))
            label_row.append(label)
          
          if graph

          else
            label.append($('<span class="badge">'))
          
          label_text = $.gricer.labelFor(line[0])
          label.attr('data-label', label_text)
          label.append(label_text)
                 
          row = $('<tr>')
          .append( label_row )
          .append( $('<td class="number">').append(line[1]) )
