Bug fix: set the rule.active correct value