fix a bug in the extracting rules
fix a bug in the extracting rules