fix bags in downloading files