Fix issue with files larger than 4GB