Why the Excel attachment becomes empty as I download it?