Fix rules format.