Fix CSV download