Fixes for rule_save, rule_move, process_rule