Bug fix for editing a rule.