fix text selection for annotation