Fix csv download
Merge pull request #1906 from erwinwinder/master

Fix csv download