[hotfix] Fix empty situation for $tag & $class