RuleUtil bug fix