fixed csv download issue