fixed assert error on delete invalid rule