fix the rule file