fix a bug when display selected Word