bug fix when exporting surveys and on media files array creation