cleanup selection on setSelection
fixed selection handling when set on analysis