fixed an issue with file download