Fix rules validation