Fixes problem of selection and searching.