Fix the display of rules

Close #3483
Merge pull request #3484 from stof/fix_rule

Fix the display of rules