Fixed copySelection in text selection