fix data downloading for large files