fixed binary to hex leading zero problem