fixing csv download