Fixed clear().  Always output tag for matching rules.