Fix rules.