Fix exported file download issue

Fixes RM-2848