fix tag_class helper