fixed text selection bug