Downloading csv file bug fix