revert rule_type