fix unclosed <span>