support update existing rule and format register.
fix the init issue when open rule editor