fixes internal server error on search page (from upstream)