fix #7922 - span inside span isue with last change