Fixes #4269: correct error on saving/creating rules