fixed bug: when delete one rule, rule number count can't be updated