filter out deleted rules