fixing bug on file download