more safe when save rules, again for #25