fixed another bug with leading zeros in hex strings. Works now