remove extra span closing tag