fixed problems with search