Fix csv download #2271