Fix a (really!) silly 500 error on the search pages.