Fixed spans with missing closing markers