fix some crashes and allow translation text to be highlightable again.