Fixes a mismatched span tag