Fix a tag close issue