Fixes #3468: show only distinct rules depending of a directive