bug fix in csv download