Fix rules file