fix hideHighlightOnSelectedWord sometimes not work