Fix for streaming large files