fixed route specificity detection bug