Cleaning out bad rules