Fix a rules file.