fix specificity bug