Fix highlight detection.