resolve bug when close tag without name exist