Fixed bug in binaryToHex