fixed a markup issue with unclosed <span>s