fixed problem with csv download