Fix downloading of search results as CSV