minor change to search code to get it working on heroku