Fixing an error where sometimes reading the first byte returns "0" and a hash false to compute entirely