fix bug createFromHexString