fix rule-delete bug