Fixed text selection bug