fix gap bug when a segmentation span covers more than one token