small fix to selection and tree