rem: var totalCards = top.addressbook.getTotalCards(uri); 
add: var totalCards = parentDir.getTotalCards(false); 
context: function UpdateStatusCardCounts(uri){  if (top.addressbook)  {    try    {      var dirResource = rdf.GetResource(uri);      var parentDir = dirResource.QueryInterface(Components.interfaces.nsIAbDirectory);      if (parentDir && !parentDir.isMailList)      {        try        {          var totalCards = top.addressbook.getTotalCards(uri);          SetTotalCardStatus(parentDir.dirName, totalCards);        }        catch(ex)        {          dump("Fail to get card total from "+uri+"\n");        }      }    }    catch(ex)    {      dump("Fail to get directory from "+uri+"\n");    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eb07f987fc3cd26963734ab7de769ad2f869c322/addressbook.js/buggy/mailnews/addrbook/resources/content/addressbook.js