fix unclosed span tag