fix bug in clustering_coef_wd and transitivity_wd