Fixes #4269: correct error on saving/creating rules
Merge pull request #392 from ncharles/bug_4269/dev/error_on_creating_saving_rules

Fixes #4269: correct error on saving/creating rules