Fix rules markup