Change the tag misfunction

Based on Liang Dong modification