fixed update error and update rule list after adding or deleting