fix issue where rules are always broken