Fix automatic rule naming.