fixed an issue of selecting text.