bug fixes for rule deletes