fix AttributeError (missing tag)