Bugfix for downloading files.