Resolved bug that caused out of memory error on large file downloads.