fix an problem in file download