Fixes unclosed span.