fix csv download