fix CSV download