fix downloading files