Fixed the file download issue