Fixed bug with out of memory when calculating SHA-1 checksum