Fixed csv issue downloading csv