fixed span highlighting bug with Japanese