Fixed csv download bug