Fix incorrect method of finding span tags in data