Fix getSelection