bugfix in download routines