Fixed tag close issue.