fix downloading of large files