fixed csv download not working in apps