fixed bugs with the rule checker.

No match.