fixed bug with large files