fix rule removal