Fixed bug with csv not downloading on prod server