fix the extra bytes into the hash