Fixed  an accidental bug with the search feature