TextField#getSelection fix