Fix offset calculation. Full downloads of large files now works