Fix the display of rules

Close #3483