Fixed a bug in removeSpanPorts

No match.